<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>#CommentFlag</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link href="../static/theme.css" rel="stylesheet" type="text/css" />
<script src="../static/content.js" type="text/javascript"></script>
</head>
<body>

<h1>#CommentFlag</h1>

<p>Changes the script's comment symbol from semicolon to some other string.</p>

<pre class="Syntax">#CommentFlag NewString</pre>
<h3>Parameters</h3>
<dl>

  <dt>NewString</dt>
  <dd><p>One or more characters that should be used as the new comment flag. Up to 15 characters may be specified.</p></dd>

</dl>
<h3>Remarks</h3>
<p>The default comment flag is semicolon (;).</p>
<p>The comment flag is used to indicate that text that follows it should not be acted upon by the script (comments are not loaded into memory when a script is launched, so they do not affect performance).</p>
<p>A comment flag that appears on the same line as a command is not considered to mark a comment unless it has at least one space or tab to its left. For example:</p>
<pre>MsgBox, Test1 <em>; This is a comment.</em>
MsgBox, Test2; This is not a comment and will be displayed by MsgBox.</pre>
<h3>Related</h3>
<p><a href="_EscapeChar.htm">#EscapeChar</a></p>
<h3>Example</h3>
<pre class="NoIndent">#CommentFlag //  <em>; Change to C++ comment style.</em></pre>

</body>
</html>
